home *** CD-ROM | disk | FTP | other *** search
- DefineVariables
- Number [ErrCount]
- Directory [windir]
- Directory [winsdir]
- Directory [FullExeName]
- Logical [EnKeyb]
- Logical [NetAvail]
- Logical [MathPres]
- Logical [modifyaxbat]
- Logical [InstallOverOldMouse]
- Logical [ModifyFile]
- Text [DispType]
- Number [XMSAvail]
- Number [ExtmemPagesActive]
- Number [ExtmemPagesAvail]
- Number [ExtMemAvail]
- Number [ExtMemPres]
- Number [ExpMempgavail]
- Number [ExpMempgactive]
- Text [osver]
- Text [DosVer]
- Text [EmsVer]
- Text [ProdExecutable]
- Text [InstDir]
- TextArray [Array1]
- EndDefineVariables
-
- [EnKeyb] := NoCharacter
- [NetAvail] := NoCharacter
- [MathPres] := NoCharacter
- [modifyaxbat] := YesCharacter
- [InstallOverOldMouse] := YesCharacter
- Do SetupDisplay
- Do CheckHardware
-
- Run [InstallFromDirectory]what_os.com Quietly
- If OSExitCode = 10
- Dialog PressAkey
- You cannot run the DOS install program from inside of Windows.
- To install WACOM for Windows select file-run from the Program
- Manager menu and type A:\SETUP.
- EndDialog
- SoLong
- Endif
- If OSExitCode = 30
- Dialog PressAkey
- You cannot run the DOS install program from NT.
- To install WACOM for Windows NT select file-run from the Program
- Manager menu and type A:\SETUP.
- EndDialog
- SoLong
- Endif
-
- if [errcount] > 1
- Dialog UseHeader "Encountered Some Problems" LightGrayOnBlue
- Our installation has encounterd the following problems,
- you can continue to install or exit installation.
- [Array1][1]
- [Array1][2]
- [Array1][3]
- [Array1][4]
- [Array1][5]
- [Array1][6]
- [Array1][7]
- EndDialog
- endif
-
- :start
- GetMenuChoice UseHeader "WACOM Installation"
- Install WACOM for DOS
- ; Install the WACOM mouse emulation driver for DOS
- Exit Installation
- ; Quit
- EndGetMenuChoice
- InCase Choice is
- =1: Do InstallDOS
- =2: SoLong
- EndIncase
- SoLong
- goto start
-
- Procedure InstallDOS
-
- Do CopyDOSFiles
-
- If MouseDriverLoaded
- SetPopupBorderTo double
- TextBox @xy(Center,3) WhiteOnRed
- " Another mouse driver is already loaded in memory! "
- "You can only have one mouse driver loaded at any time."
- EndTextBox
- SetPopupBorderTo single
- EndIf
-
- Dialog [InstallOverOldMouse]
- This installer will attempt to remove any existing mouse drivers from
- your CONFIG.SYS or AUTOEXEC.BAT files, and automatically load the
- WACOM mouse driver in your AUTOEXEC.BAT file.
- " "
- " Would you like to continue? "
- EndDialog
- SetBottomLineTo BlankString
-
- ClearScreen
-
- If [InstallOverOldMouse] = NoCharacter
- [modifyaxbat] := NoCharacter
- GoTo doneAutoExec
- EndIf
-
- [FullExeName] := [InstallationDirectory]\WMOUSE.COM
-
- ;; disable instalit's notification of sys file modification
- ;; and location inquiry
- SetModifyModeTo Modify
- NoSysFileConfirmation
-
- ExamineTextFile c:\config.sys
- [Number1] := LineNumberWith (device=,mouse.sys,)
- if [Number1] <> 0
- [String1] := Line [Number1]
- Dialog PressAKey
- The line "[String1]" in your CONFIG.SYS File is being
- replaced with "REM [String1]".
- EndDialog
- ModifyTextFile c:\config.sys Quietly
- DeleteLine [Number1]
- InsertAtLine [Number1] "REM [String1]"
- EndModifyTextFile
- Endif
- ForgetTextFile
-
- ExamineTextFile c:\autoexec.bat
-
- ;; loop thru all lines of autoexec
- [Number3] := 1
- [Number4] := TextLineCount
-
- :topExamAutoExec
- If [Number3] > [Number4]
- GoTo doneExamAutoExec
- EndIf
- [String2] := Line [Number3]
- If [String2] contains rem
- IncrementNumber [Number3]
- GoTo topExamAutoExec
- EndIf
-
- ;; add a slash to take care of cases where line ends without
- ;; 'exe','com', or some paramteters
- [String1] := [String2] /
- If [String1] contains mouse /
- GoTo doneExamAutoExec
- EndIf
- If [String1] contains mouse.com
- GoTo doneExamAutoExec
- EndIf
- If [String1] contains mouse.exe
- GoTo doneExamAutoExec
- EndIf
-
- IncrementNumber [Number3]
- GoTo topExamAutoExec
- :doneExamAutoExec
-
- ;; check if we found our own driver
- If [String1] contains wmouse
- Dialog PressAKey
- The line "[String2]" in your AUTOEXEC.BAT File is being
- modified to run the new wmouse program.
- EndDialog
- ModifyTextFile c:\autoexec.bat Quietly
- DeleteLine [Number3]
- InsertAtLine [Number3] [FullExeName]
- EndModifyTextFile
- GoTo doneAddWmouse
- EndIf
- If [Number3] <= [Number4]
- Dialog [modifyaxbat]
- In order to have the WACOM driver load at boot time,
- the line "[String2]" in your AUTOEXEC.BAT file should
- be replaced with "REM [String2]".
- The line "[FullExeName]" should be added.
-
- Would you like the installer to make these changes?
- EndDialog
- If [modifyaxbat]
- ModifyTextFile c:\autoexec.bat Quietly
- DeleteLine [Number3]
- InsertAtLine [Number3] "REM [String2]"
- EndModifyTextFile
- GoTo foundWIN
- Endif
- [modifyaxbat] := NoCharacter
- GoTo doneAutoExec
- Endif
-
-
- ;; loop thru all lines of autoexec
- [Number3] := 1
- [Number4] := TextLineCount
-
- :toplook4WIN
- If [Number3] > [Number4]
- GoTo foundNoWIN
- EndIf
- [String2] := Line [Number3]
- If [String2] contains rem
- IncrementNumber [Number3]
- GoTo toplook4WIN
- EndIf
- ;; add a slash to take care of cases where line ends without
- ;; 'exe','com', or some paramteters
- [String1] := [String2] /
-
- If [String1] contains win /
- GoTo foundWin
- EndIf
- If [String1] contains win.com
- GoTo foundWIN
- EndIf
-
- IncrementNumber [Number3]
- GoTo toplook4WIN
-
- :foundWIN
- ModifyTextFile c:\autoexec.bat Quietly
- InsertAtLine [Number3] [FullExeName]
- EndModifyTextFile
- GoTo forgetit
-
- :foundNoWin
- ModifyTextFile c:\autoexec.bat Quietly
- InsertAtLine End [FullExeName]
- EndModifyTextFile
- :doneAddWmouse
-
- :forgetit
- ForgetTextFile
-
- :doneAutoExec
-
- SetShadows OFF
- TextBox @xy(Center,2)
- The following WMOUSE.TXT file was copied to your [InstallationDirectory] directory.
- It contains updated information about the WACOM mouse emulation driver.
-
- " Press ESC to Continue"
- EndTextBox
- SetPopupBorderTo double
- SetBottomLineTo " PgUp PgDn Home End ESC "
- BrowseFile [InstallationDirectory]\WMOUSE.TXT @xy(5,9) @xy(77,19) YellowOnBlue UseHeader "README.TXT"
- SetBottomLineTo BlankString
- ClearScreen
- SetShadows ON
-
- If [modifyaxbat]
- Dialog PressAKey
- Your WACOM Tablet has been setup for use with DOS programs. You
- must restart your computer to have the use of the tablet in DOS.
-
- This concludes the WACOM software installation for DOS.
- EndDialog
- GoTo leaveInstallDOS
- Endif
- Dialog PressAKey
- The WACOM Tablet drivers have been successfully copied. If you
- would like to load the WACOM mouse driver, go to the
- [InstallationDirectory] directory and type WMOUSE.
-
- Your AUTOEXEC.BAT file was not modified, you can run the installer
- program at a later date to modify your AUTOEXEC.BAT file and have
- your tablet driver automatically load at boot time.
-
- This concludes the WACOM software installation for DOS.
- EndDialog
-
- :leaveInstallDOS
- EndProcedure
-
- Procedure CopyDOSFiles
-
- SetBottomLineTo " Enter the Destination Directory or Press <CtrlX> to Quit "
- DetermineInstallationDirectory C:\WACOM
- SetBottomLineTo BlankString
-
- OpenCopyWindow
- CopyFiles
- wmouse.com
- wmouse.txt
- wtest.com
- wtest.txt
- EndCopyFiles
- CopyFiles from [InstallFromDirectory]..\
- readme.txt
- EndCopyFiles
- CloseCopyWindow
-
- EndProcedure
-
- Procedure SetupDisplay
- SetBackGroundCharTO b0
- SetPopupAttrTo BlueOnLightGray
- EndProcedure
-
- Procedure CheckHardware
- [Number3] := 1
- [windir] := [WindowsDirectory]
- [winsdir] := [WindowsSystemDirectory]
- [ExtmemPagesActive] := ExtendedMemoryPagesActive
- [ExtmemPagesAvail] := ExtendedMemoryPagesAvailable
- [ExtMemAvail] := ExtendedMemoryAvailable
- [ExtMemPres] := ExtendedMemoryPresent
- [ExpMempgAvail] := ExpandedMemoryPagesAvailable
- [ExpMempgActive] := ExpandedMemoryPagesActive
- [osver] := OSVersion
- [DosVer] := DOSVersion
- [EmsVer] := EMSVersion
- [Errcount] := [Number3]
- EndProcedure
-